package org.praluca.test1;

public class MingeSimpla {
	private int raza;

	/**
	 * Constructor (se executa la """MingeSimpla minge1 = new MingeSimpla();"""
	 * )
	 */
	public MingeSimpla() {
		this.raza = 1;
	}

	/**
	 * Constructor cu parametru MingeSimpla minge2 = new MingeSimpla(3);
	 * 
	 * @param r
	 */
	public MingeSimpla(int r) {
		this.raza = r;
	}

	/**
	 * O metoda (method)
	 * 
	 * @return
	 */
	public int getRaza() {
		return this.raza;
	}

	public int getDiametru() {

		int diametru;
		diametru = this.raza * 2;
		return diametru;
	}
}
